{template 'common/header'}
<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('order', array('op' => 'display'));}">订单列表</a></li>
</ul>
{if $op == 'display'}
<style>
.table td span{display:inline-block;margin-top:4px;}
.table td input{margin-bottom:0;}
th{
	text-align: center !important;
}
td{
	text-align: center !important;
}
</style>
<div class="main">
	<form action="" method="get" class="form-horizontal" role="form">
		<div class="panel panel-info">
	        <div class="panel-heading">筛选</div>
	        <div class="panel-body">
	                <input type="hidden" name="c" value="site" />
	                <input type="hidden" name="a" value="entry" />
	                <input type="hidden" name="m" value="junsion_wifinav" />
	                <input type="hidden" name="do" value="order" />
	                <input type="hidden" name="type" value="{$type}" />
	                <div class="form-group">
	                    <label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
	                    <div class="col-sm-3 col-xs-12">
	                        <input class="form-control" name="keyword" id="" type="text" value="{$_GPC['keyword']}" placeholder="请输入订单号/wifi名">
	                    </div>
	                    <div class=" col-xs-12 col-sm-6 col-lg-3">
	                        <button class="btn btn-default" ><i class="fa fa-search"></i> 搜索</button>
	                   	</div>
	                </div>
	                
	        </div>
	    </div>
	</form>
	<div style="padding:15px;background: white;">
		<table class="table table-hover">
			<thead class="navbar-inner">
				<tr>
					<th>会员</th>
					<th>订单号</th>
					<th>WiFi名</th>
					<th>套餐名</th>
					<th>金额</th>
					<th>流水号</th>
					<th>支付时间</th>
				</tr>
			</thead>
			<tbody>
				{loop $list $item}
				<tr>
					<td><img width="80px" src="{$user[$item['uid']]['avatar']}"><br>{$user[$item['uid']]['nickname']}</td>
					<td>{$item['ordersn']}</td>
					<td>{$item['SSID']}<br><a class='btn btn-default btn-sm' target="_blank" href='{php echo $this->createWebUrl("enter",array("id"=>$item["BSSID"]))}'>点击查看</a></td>
					<td>{$packages[$item['pid']]['title']}</td>
					<td>{$item['fee']}</td>
					<td>{$item['transid']}</td>
					<td>{php echo date('Y-m-d H:i:s',$item['paytime'])}</td>
				</tr>
				{/loop}
			</tbody>
		</table>
		{$pager}
	</div>
</div>
{/if}
{template 'common/footer'}